﻿@{
    Type type = Html.ModelType();
    var obj = Activator.CreateInstance(type);
    string viewName = ViewBag.ViewName ?? "List";
}
@section right {
    @Html.Partial("_Buttons", MenuHelper.GetMenuItems(4))
}
@using (Html.BeginForm(null, null, FormMethod.Post, new { id = "filter-form", name = "filter-form" }))
{
    @Html.Partial("FilterTemplates/Table", obj)
    <input type="submit" style="display: block" value="搜索" />
}
@using (Html.BeginForm("Delete", null, FormMethod.Post, new { id = "list-form", name = "list-form" }))
{
    @Html.DisplayForModel(viewName)
}
